<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>radoaGra.jsp</title>
<script>
	var ctx= document.getElementById('canvas').getContext('2d');
	var gra=ctx.createRadialGradient(400,300,50,400,300,150);
	
	gra.addColorStop(0,'red');
	gra.addColorStop(1,'blue');
	
	ctx.fillStyle=gra;
	ctx.fillRect(100,10,400,300);


</script>


</head>
<body>
<canvas id='canvas' width='800' height='600'></canvas>
</body>
</html>